package com.langyiquan.service;

import com.alibaba.fastjson.JSONObject;
import com.langyiquan.bo.OrderItemsCommentBO;
import com.langyiquan.bo.ShopcartBO;
import com.langyiquan.bo.SubmitOrderBO;
import com.langyiquan.pojo.OrderItems;
import com.langyiquan.pojo.Orders;
import com.langyiquan.utils.PagedGridResult;
import com.langyiquan.vo.MyOrdersVO;
import com.langyiquan.vo.OrderStatusCountsVO;
import com.langyiquan.vo.OrderVO;

import java.text.ParseException;
import java.util.List;

public interface OrderService {

    public OrderVO createOrder(SubmitOrderBO submitOrderBO,String userId);

    public OrderVO createOrder(SubmitOrderBO submitOrderBO, List<ShopcartBO> shopcartList,String userId);

    public void updateOrderStatus(String orderId, Integer orderStatus);

    public void updateOrderReceive(String orderId, String deliverCode);

    public void closeOrder();

    public PagedGridResult queryMyOrders(String userId, Integer orderStatus, Integer page, Integer pageSize);

    public Orders queryOrder(String orderId, String userId);

    public MyOrdersVO queryOrderInfo(String orderId, String userId);

    public void deleteOrder(String orderId);

    public List<OrderItems> queryPendingComment(String orderId);

    public void saveComment(String orderId, String userId, List<OrderItemsCommentBO> list);

    public PagedGridResult getMyComment(String userId, Integer page, Integer pageSize);

    public OrderStatusCountsVO getOrderStatusCounts(String userId);

    public JSONObject getDeliverStatus(String orderId);

}
